public function surveySectionA(Request $request)
{
    // Validate the input fields
    $validator = Validator::make($request->all(), [
        'email_or_username' => 'required',
        'password' => 'required',
    ]);

    if ($validator->fails()) {
        return $this->sendError('Validation errors.', ['error' => $validator->errors()], 422);
    }

    DB::beginTransaction();
    try {

        $success = [];
        DB::commit();
        return $this->sendResponse($success, 'Data inserted successfully.');
    } catch (\Exception $e) {
        DB::rollback();
        return $this->sendError('Server errors.', ['error' => $e->getMessage()], 500);
    }
}

<link href="https://fonts.maateen.me/solaiman-lipi/font.css" rel="stylesheet">
<style>
    @font-face {
        font-family: 'SolaimanLipi';
    }
    body{
        font-family: 'solaiman_lipi', Arial, sans-serif !important;
    }
</style>